package com.example.springbootdemo.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 *@author xuwangqi
 *@date 2021/5/24 9:28
 **/
/**
    * 支付失败信息表
    */
@ApiModel(value="com-example-springbootdemo-entity-PayFail")
@TableName(value = "pay_fail")
public class PayFail {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="")
    private Long id;

    @TableField(value = "uid")
    @ApiModelProperty(value="")
    private Long uid;

    /**
     * IPV4地址
     */
    @TableField(value = "ip4")
    @ApiModelProperty(value="IPV4地址")
    private String ip4;

    /**
     * 商户订单号
     */
    @TableField(value = "order_no")
    @ApiModelProperty(value="商户订单号")
    private String orderNo;

    /**
     * 微信支付系统生成的订单号
     */
    @TableField(value = "transaction_id")
    @ApiModelProperty(value="微信支付系统生成的订单号")
    private String transactionId;

    /**
     * 失败原因
     */
    @TableField(value = "fail_reason")
    @ApiModelProperty(value="失败原因")
    private String failReason;

    /**
     * 失败时间
     */
    @TableField(value = "fail_time")
    @ApiModelProperty(value="失败时间")
    private Date failTime;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    public static final String COL_ID = "id";

    public static final String COL_UID = "uid";

    public static final String COL_IP4 = "ip4";

    public static final String COL_ORDER_NO = "order_no";

    public static final String COL_TRANSACTION_ID = "transaction_id";

    public static final String COL_FAIL_REASON = "fail_reason";

    public static final String COL_FAIL_TIME = "fail_time";

    public static final String COL_GMT_CREATE = "gmt_create";

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return uid
     */
    public Long getUid() {
        return uid;
    }

    /**
     * @param uid
     */
    public void setUid(Long uid) {
        this.uid = uid;
    }

    /**
     * 获取IPV4地址
     *
     * @return ip4 - IPV4地址
     */
    public String getIp4() {
        return ip4;
    }

    /**
     * 设置IPV4地址
     *
     * @param ip4 IPV4地址
     */
    public void setIp4(String ip4) {
        this.ip4 = ip4;
    }

    /**
     * 获取商户订单号
     *
     * @return order_no - 商户订单号
     */
    public String getOrderNo() {
        return orderNo;
    }

    /**
     * 设置商户订单号
     *
     * @param orderNo 商户订单号
     */
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    /**
     * 获取微信支付系统生成的订单号
     *
     * @return transaction_id - 微信支付系统生成的订单号
     */
    public String getTransactionId() {
        return transactionId;
    }

    /**
     * 设置微信支付系统生成的订单号
     *
     * @param transactionId 微信支付系统生成的订单号
     */
    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }

    /**
     * 获取失败原因
     *
     * @return fail_reason - 失败原因
     */
    public String getFailReason() {
        return failReason;
    }

    /**
     * 设置失败原因
     *
     * @param failReason 失败原因
     */
    public void setFailReason(String failReason) {
        this.failReason = failReason;
    }

    /**
     * 获取失败时间
     *
     * @return fail_time - 失败时间
     */
    public Date getFailTime() {
        return failTime;
    }

    /**
     * 设置失败时间
     *
     * @param failTime 失败时间
     */
    public void setFailTime(Date failTime) {
        this.failTime = failTime;
    }

    /**
     * @return gmt_create
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * @param gmtCreate
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }
}